Skip to content

docs: uniffi = { workspace = true } does not work #6617

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jo opened this issue Feb 27, 2025 · 2 comments
Open

docs: uniffi = { workspace = true } does not work #6617

jo opened this issue Feb 27, 2025 · 2 comments

Comments

@jo
Copy link
Contributor

jo commented Feb 27, 2025

When following the instructions on how to set up a new component, its advised to declare uniffi as a workspace dependency

[dependencies]
uniffi = { workspace = true }

but running cargo check -p results in an error:

error: failed to load manifest for workspace member `/home/jo/moz/application-services/components/init_rust_components`
referenced by workspace at `/home/jo/moz/application-services/Cargo.toml`

Caused by:
  failed to parse manifest at `/home/jo/moz/application-services/components/init_rust_components/Cargo.toml`

Caused by:
  error inheriting `uniffi` from workspace root manifest's `workspace.dependencies.uniffi`

Caused by:
  `workspace.dependencies` was not defined

┆Issue is synchronized with this Jira Task
┆Epic: Important backlog

@mhammond
Copy link
Member

oops - we did that for a while, but then struck issues after vendoring the change to m-c, so undid it.

iow, the docs need updating.

@jo
Copy link
Contributor Author

jo commented Mar 3, 2025

#6626

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants